package maxcache

import "time"

type item struct {
	val        []byte
	expiration time.Time
}

// 是否到期
func (i *item) expired() bool {
	return !i.expiration.IsZero() && i.expiration.Before(time.Now())
}
